package com.weitu.contractor.entity;

import java.io.Serializable;

/** 
 * 承包商管理_业务资质变更历史表 HSE_CM_BUSINESSHISTORY
 * @author LiMeng
 * date 2017/04/13 14:55
 */
public class BusinessQualificationHistory implements Serializable {
    //串行版本ID
    private static final long serialVersionUID = 4275330010643281938L;

    // 主键 使用uuid
    private String id;

    // 标识
    private String code;

    // 备注
    private String remarks;

    // 删除标记 0未删除 1 已删除  默认：((0))
    private Integer delState;

    // 添加人
    private String addUserId;

    // 添加人部门Id
    private String addDeptId;

    // 添加时间
    private String addTime;

    // 修改人部门Id
    private String updateDeptId;

    // 最后修改人
    private String updateUserId;

    // 最后修改时间
    private String updateTime;

    // 承包商id
    private String contractorId;

    // 业务资质id
    private String businessId;

    // 证书名称
    private String name;

    // 资质证书编号
    private String certCode;

    // 业务资质等级
    private Integer level;

    // 有效开始日期
    private String validStartDate;

    // 有效结束日期
    private String validEndDate;

    //添加人名称
    private String addUserName;

    //添加部门名称
    private String addDeptName;

    /** 
     * 获取 主键 使用uuid HSE_CM_BUSINESSHISTORY.id
     * @return 主键 使用uuid
     */
    public String getId() {
        return id;
    }

    /** 
     * 设置 主键 使用uuid HSE_CM_BUSINESSHISTORY.id
     * @param id 主键 使用uuid
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /** 
     * 获取 标识 HSE_CM_BUSINESSHISTORY.code
     * @return 标识
     */
    public String getCode() {
        return code;
    }

    /** 
     * 设置 标识 HSE_CM_BUSINESSHISTORY.code
     * @param code 标识
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /** 
     * 获取 备注 HSE_CM_BUSINESSHISTORY.remarks
     * @return 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /** 
     * 设置 备注 HSE_CM_BUSINESSHISTORY.remarks
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    /** 
     * 获取 删除标记 0未删除 1 已删除 HSE_CM_BUSINESSHISTORY.delState
     * @return 删除标记 0未删除 1 已删除
     */
    public Integer getDelState() {
        return delState;
    }

    /** 
     * 设置 删除标记 0未删除 1 已删除 HSE_CM_BUSINESSHISTORY.delState
     * @param delState 删除标记 0未删除 1 已删除
     */
    public void setDelState(Integer delState) {
        this.delState = delState;
    }

    /** 
     * 获取 添加人 HSE_CM_BUSINESSHISTORY.addUserId
     * @return 添加人
     */
    public String getAddUserId() {
        return addUserId;
    }

    /** 
     * 设置 添加人 HSE_CM_BUSINESSHISTORY.addUserId
     * @param addUserId 添加人
     */
    public void setAddUserId(String addUserId) {
        this.addUserId = addUserId == null ? null : addUserId.trim();
    }

    /** 
     * 获取 添加人部门Id HSE_CM_BUSINESSHISTORY.addDeptId
     * @return 添加人部门Id
     */
    public String getAddDeptId() {
        return addDeptId;
    }

    /** 
     * 设置 添加人部门Id HSE_CM_BUSINESSHISTORY.addDeptId
     * @param addDeptId 添加人部门Id
     */
    public void setAddDeptId(String addDeptId) {
        this.addDeptId = addDeptId == null ? null : addDeptId.trim();
    }

    /** 
     * 获取 添加时间 HSE_CM_BUSINESSHISTORY.addTime
     * @return 添加时间
     */
    public String getAddTime() {
        return addTime;
    }

    /** 
     * 设置 添加时间 HSE_CM_BUSINESSHISTORY.addTime
     * @param addTime 添加时间
     */
    public void setAddTime(String addTime) {
        this.addTime = addTime == null ? null : addTime.trim();
    }

    /** 
     * 获取 修改人部门Id HSE_CM_BUSINESSHISTORY.updateDeptId
     * @return 修改人部门Id
     */
    public String getUpdateDeptId() {
        return updateDeptId;
    }

    /** 
     * 设置 修改人部门Id HSE_CM_BUSINESSHISTORY.updateDeptId
     * @param updateDeptId 修改人部门Id
     */
    public void setUpdateDeptId(String updateDeptId) {
        this.updateDeptId = updateDeptId == null ? null : updateDeptId.trim();
    }

    /** 
     * 获取 最后修改人 HSE_CM_BUSINESSHISTORY.updateUserId
     * @return 最后修改人
     */
    public String getUpdateUserId() {
        return updateUserId;
    }

    /** 
     * 设置 最后修改人 HSE_CM_BUSINESSHISTORY.updateUserId
     * @param updateUserId 最后修改人
     */
    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId == null ? null : updateUserId.trim();
    }

    /** 
     * 获取 最后修改时间 HSE_CM_BUSINESSHISTORY.updateTime
     * @return 最后修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /** 
     * 设置 最后修改时间 HSE_CM_BUSINESSHISTORY.updateTime
     * @param updateTime 最后修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    /** 
     * 获取 承包商id HSE_CM_BUSINESSHISTORY.contractorId
     * @return 承包商id
     */
    public String getContractorId() {
        return contractorId;
    }

    /** 
     * 设置 承包商id HSE_CM_BUSINESSHISTORY.contractorId
     * @param contractorId 承包商id
     */
    public void setContractorId(String contractorId) {
        this.contractorId = contractorId == null ? null : contractorId.trim();
    }

    /** 
     * 获取 业务资质id HSE_CM_BUSINESSHISTORY.businessId
     * @return 业务资质id
     */
    public String getBusinessId() {
        return businessId;
    }

    /** 
     * 设置 业务资质id HSE_CM_BUSINESSHISTORY.businessId
     * @param businessId 业务资质id
     */
    public void setBusinessId(String businessId) {
        this.businessId = businessId == null ? null : businessId.trim();
    }

    /** 
     * 获取 证书名称 HSE_CM_BUSINESSHISTORY.name
     * @return 证书名称
     */
    public String getName() {
        return name;
    }

    /** 
     * 设置 证书名称 HSE_CM_BUSINESSHISTORY.name
     * @param name 证书名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /** 
     * 获取 资质证书编号 HSE_CM_BUSINESSHISTORY.certCode
     * @return 资质证书编号
     */
    public String getCertCode() {
        return certCode;
    }

    /** 
     * 设置 资质证书编号 HSE_CM_BUSINESSHISTORY.certCode
     * @param certCode 资质证书编号
     */
    public void setCertCode(String certCode) {
        this.certCode = certCode == null ? null : certCode.trim();
    }

    /** 
     * 获取 业务资质等级 HSE_CM_BUSINESSHISTORY.level
     * @return 业务资质等级
     */
    public Integer getLevel() {
        return level;
    }

    /** 
     * 设置 业务资质等级 HSE_CM_BUSINESSHISTORY.level
     * @param level 业务资质等级
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    /** 
     * 获取 有效开始日期 HSE_CM_BUSINESSHISTORY.validStartDate
     * @return 有效开始日期
     */
    public String getValidStartDate() {
        return validStartDate;
    }

    /** 
     * 设置 有效开始日期 HSE_CM_BUSINESSHISTORY.validStartDate
     * @param validStartDate 有效开始日期
     */
    public void setValidStartDate(String validStartDate) {
        this.validStartDate = validStartDate == null ? null : validStartDate.trim();
    }

    /** 
     * 获取 有效结束日期 HSE_CM_BUSINESSHISTORY.validEndDate
     * @return 有效结束日期
     */
    public String getValidEndDate() {
        return validEndDate;
    }

    /** 
     * 设置 有效结束日期 HSE_CM_BUSINESSHISTORY.validEndDate
     * @param validEndDate 有效结束日期
     */
    public void setValidEndDate(String validEndDate) {
        this.validEndDate = validEndDate == null ? null : validEndDate.trim();
    }

    public String getAddUserName() {
        return addUserName;
    }

    public void setAddUserName(String addUserName) {
        this.addUserName = addUserName;
    }

    public String getAddDeptName() {
        return addDeptName;
    }

    public void setAddDeptName(String addDeptName) {
        this.addDeptName = addDeptName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BusinessQualificationHistory{");
        sb.append("id='").append(id).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", remarks='").append(remarks).append('\'');
        sb.append(", delState=").append(delState);
        sb.append(", addUserId='").append(addUserId).append('\'');
        sb.append(", addDeptId='").append(addDeptId).append('\'');
        sb.append(", addTime='").append(addTime).append('\'');
        sb.append(", updateDeptId='").append(updateDeptId).append('\'');
        sb.append(", updateUserId='").append(updateUserId).append('\'');
        sb.append(", updateTime='").append(updateTime).append('\'');
        sb.append(", contractorId='").append(contractorId).append('\'');
        sb.append(", businessId='").append(businessId).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", certCode='").append(certCode).append('\'');
        sb.append(", level=").append(level);
        sb.append(", validStartDate='").append(validStartDate).append('\'');
        sb.append(", validEndDate='").append(validEndDate).append('\'');
        sb.append(", addUserName='").append(addUserName).append('\'');
        sb.append(", addDeptName='").append(addDeptName).append('\'');
        sb.append('}');
        return sb.toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BusinessQualificationHistory that = (BusinessQualificationHistory) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if (delState != null ? !delState.equals(that.delState) : that.delState != null) return false;
        if (addUserId != null ? !addUserId.equals(that.addUserId) : that.addUserId != null) return false;
        if (addDeptId != null ? !addDeptId.equals(that.addDeptId) : that.addDeptId != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateDeptId != null ? !updateDeptId.equals(that.updateDeptId) : that.updateDeptId != null) return false;
        if (updateUserId != null ? !updateUserId.equals(that.updateUserId) : that.updateUserId != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (contractorId != null ? !contractorId.equals(that.contractorId) : that.contractorId != null) return false;
        if (businessId != null ? !businessId.equals(that.businessId) : that.businessId != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (certCode != null ? !certCode.equals(that.certCode) : that.certCode != null) return false;
        if (level != null ? !level.equals(that.level) : that.level != null) return false;
        if (validStartDate != null ? !validStartDate.equals(that.validStartDate) : that.validStartDate != null)
            return false;
        if (validEndDate != null ? !validEndDate.equals(that.validEndDate) : that.validEndDate != null) return false;
        if (addUserName != null ? !addUserName.equals(that.addUserName) : that.addUserName != null) return false;
        return addDeptName != null ? addDeptName.equals(that.addDeptName) : that.addDeptName == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (delState != null ? delState.hashCode() : 0);
        result = 31 * result + (addUserId != null ? addUserId.hashCode() : 0);
        result = 31 * result + (addDeptId != null ? addDeptId.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateDeptId != null ? updateDeptId.hashCode() : 0);
        result = 31 * result + (updateUserId != null ? updateUserId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (contractorId != null ? contractorId.hashCode() : 0);
        result = 31 * result + (businessId != null ? businessId.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (certCode != null ? certCode.hashCode() : 0);
        result = 31 * result + (level != null ? level.hashCode() : 0);
        result = 31 * result + (validStartDate != null ? validStartDate.hashCode() : 0);
        result = 31 * result + (validEndDate != null ? validEndDate.hashCode() : 0);
        result = 31 * result + (addUserName != null ? addUserName.hashCode() : 0);
        result = 31 * result + (addDeptName != null ? addDeptName.hashCode() : 0);
        return result;
    }
}